package com.sas.utils;

import org.apache.wicket.model.IModel;
import org.apache.wicket.model.ResourceModel;

import com.sas.domain.Article;
import com.sas.domain.Client;
import com.sas.web.SasBasePage;

public class MessageHelper {



	public static String sellingTo(IModel<Article> articleModel,
			IModel<Client> clientModel) {

		return articleModel.getObject().getCode() + "    " + clientModel.getObject().getName();
	}

	public static String articleToSell(IModel<Article> articleModel) {
		Article art = articleModel.getObject();
		return new ResourceModel("articleToSell").getObject() 
			+ art.getCode()
			+ "(" + art.getDescription() + ")";
	}
	

}

